import ttkbootstrap as ttk
from ttkbootstrap.constants import *
from bingfengsec import BingFengSec

root = ttk.Window(
                title="【自用渗透工具集-linux】 by 冰封/BingFeng",
                themename="superhero",
                size=(900, 650),
                resizable=(True, True),
                )
f = ttk.Frame(root)
f.pack(pady=5, fill=X, side=TOP)
pk = ttk.Notebook(f)
pk.pack(
    side=LEFT,
    padx=(10, 0),
    expand=YES,
    fill=BOTH
)
        
#################### 常用工具 ####################
f_0 = ttk.Frame(pk)
            
ttk.Button(f_0,text="打开软件安装主目录", bootstyle=(PRIMARY, "success-outline-toolbutton"),
            width=20, command=BingFengSec.btn_1).grid(row=1,column=1,padx=20,pady=10)
                
ttk.Button(f_0,text="重启todeskd服务", bootstyle=(PRIMARY, "success-outline-toolbutton"),
            width=20, command=BingFengSec.btn_2).grid(row=1,column=2,padx=20,pady=10)
                
pk.add(f_0, text='     常用工具    ')
            
#################### 信息收集 ####################
f_1 = ttk.Frame(pk)
            
ttk.Button(f_1,text="打开软件安装主目录", bootstyle=(PRIMARY, "success-outline-toolbutton"),
            width=20, command=BingFengSec.btn_3).grid(row=1,column=1,padx=20,pady=10)
                
ttk.Button(f_1,text="waf识别", bootstyle=(PRIMARY, "success-outline-toolbutton"),
            width=20, command=BingFengSec.btn_4).grid(row=1,column=2,padx=20,pady=10)
                
ttk.Button(f_1,text="nmap端口扫描", bootstyle=(PRIMARY, "success-outline-toolbutton"),
            width=20, command=BingFengSec.btn_5).grid(row=1,column=3,padx=20,pady=10)
                
ttk.Button(f_1,text="masscan端口扫描", bootstyle=(PRIMARY, "success-outline-toolbutton"),
            width=20, command=BingFengSec.btn_6).grid(row=1,column=4,padx=20,pady=10)
                
ttk.Button(f_1,text="oneforall子域名扫描", bootstyle=(PRIMARY, "success-outline-toolbutton"),
            width=20, command=BingFengSec.btn_7).grid(row=2,column=1,padx=20,pady=10)
                
ttk.Button(f_1,text="dirsearch目录暴破", bootstyle=(PRIMARY, "success-outline-toolbutton"),
            width=20, command=BingFengSec.btn_8).grid(row=2,column=2,padx=20,pady=10)
                
ttk.Button(f_1,text="whatweb---CMS识别", bootstyle=(PRIMARY, "success-outline-toolbutton"),
            width=20, command=BingFengSec.btn_9).grid(row=2,column=3,padx=20,pady=10)
                
pk.add(f_1, text='     信息收集    ')
            
#################### 渗透测试 ####################
f_2 = ttk.Frame(pk)
            
ttk.Button(f_2,text="打开漏洞利用目录", bootstyle=(PRIMARY, "success-outline-toolbutton"),
            width=20, command=BingFengSec.btn_10).grid(row=1,column=1,padx=20,pady=10)
                
pk.add(f_2, text='     渗透测试    ')
            
#################### 漏洞利用 ####################
f_3 = ttk.Frame(pk)
            
ttk.Button(f_3,text="打开漏洞利用目录", bootstyle=(PRIMARY, "success-outline-toolbutton"),
            width=20, command=BingFengSec.btn_11).grid(row=1,column=1,padx=20,pady=10)
                
pk.add(f_3, text='     漏洞利用    ')
            
#################### 提权专用 ####################
f_4 = ttk.Frame(pk)
            
ttk.Button(f_4,text="打开漏洞利用目录", bootstyle=(PRIMARY, "success-outline-toolbutton"),
            width=20, command=BingFengSec.btn_12).grid(row=1,column=1,padx=20,pady=10)
                
pk.add(f_4, text='     提权专用    ')
            
#################### 渗透测试常用命令集合 ####################
f_5 = ttk.Frame(pk)
            
ttk.Button(f_5,text="打开漏洞利用目录", bootstyle=(PRIMARY, "success-outline-toolbutton"),
            width=20, command=BingFengSec.btn_13).grid(row=1,column=1,padx=20,pady=10)
                
pk.add(f_5, text='     渗透测试常用命令集合    ')
            
root.mainloop()